//
//  ScreenRuler.h
//  ScreenRuler
//
//  Created by Tianzhou on 09-1-7.
//  Copyright 2009 Tianzhou Software Inc.. All rights reserved.
//
//  Licensed under the Apache License, Version 2.0 (the "License"); you may not
//  use this file except in compliance with the License.  You may obtain a copy
//  of the License at
//
//  http://www.apache.org/licenses/LICENSE-2.0
//
//  Unless required by applicable law or agreed to in writing, software
//  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
//  License for the specific language governing permissions and limitations under
//  the License.

#define kScreenRulerResizeKnobEdgeLength 7
#define kMinRulerLength 40
#define kScreenRulerMeasurementUnitKind 3


#define kScreenRulerVerticalRulerLocationKey @"vertRulerLocation"
#define kScreenRulerHorizontalRulerLocationKey @"horzRulerLocation"

// When dragging, it seems cursor will be first set to arrow cursor by the framework
// and then set back to the desired cursor as I do in [ScreenRulerExtensibleRulerView mouseDragged:].
// For now, just use the default arrow cursor
#define USE_SPECIALCURSOR_FOR_DRAGGING (0)


typedef enum _RulerLocation
{
	kTop = 0,
	kBottom = 1,
	kLeft = 2,
	kRight = 3
}RulerLocation;

